package com.twu.biblioteca.ui.recevier;

import java.util.Scanner;

public class StringRecevier {
    private final Scanner scanner;

    public StringRecevier(Scanner scanner) {
        this.scanner = scanner;
    }

    public String getString() {
        try {
            return scanner.nextLine();
        } catch (Exception ex) {
            return "";
        }
    }
}
